package Exercicio3;

public class UseEnums2 {
	enum Colors {
		RED, GREEN, BLUE, YELLOW
	};

	public static void main(String[] args) {

		for (Colors c : Colors.values()) {
			if (c == Colors.GREEN)
				System.out.print("green ");

			if (Colors.RED.equals(c))
				System.out.print("red ");
			/**
			 * if (c == "YELLOW") System.out.print("yellow ");
			 */
			if (c.equals("BLUE"))
				System.out.print("blue ");

		}
	}
}
